<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.sql.*" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	function del(id){
		if(confirm("是否要删除这条记录?")){
			window.location.href="upload?method=delete&id="+id;
		}
	}

</script>
</head>
<body>


<button type="button" onclick="javascript:window.location.href='upload.jsp';">上传文件</button>

<table border="1">
	<thead>
		<tr>
			<th>编号</th><th colspan="2">文件名</th><th>文件说明</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${list}" var="u">
			<tr>
				<td>${u.id}</td>
				<td>${u.filename}</td>
				<td><IMG height=99 src="upload?method=down&id=${u.id}" width=136></td>
				<td>${u.notes}</td>
			</tr>
		
		</c:forEach>
	</tbody>
</table>
</body>
</html>